package com.run.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.run.merchant.mapper.ApplyInfoMapper;
import com.run.merchant.domain.ApplyInfo;
import com.run.merchant.service.IApplyInfoService;

/**
 * 代取员认证申请Service业务层处理
 * 
 * @author run
 * @date 2025-05-12
 */
@Service
public class ApplyInfoServiceImpl implements IApplyInfoService 
{
    @Autowired
    private ApplyInfoMapper applyInfoMapper;

    /**
     * 查询代取员认证申请
     * 
     * @param applyId 代取员认证申请主键
     * @return 代取员认证申请
     */
    @Override
    public ApplyInfo selectApplyInfoByApplyId(Long applyId)
    {
        return applyInfoMapper.selectApplyInfoByApplyId(applyId);
    }

    /**
     * 查询代取员认证申请列表
     * 
     * @param applyInfo 代取员认证申请
     * @return 代取员认证申请
     */
    @Override
    public List<ApplyInfo> selectApplyInfoList(ApplyInfo applyInfo)
    {
        return applyInfoMapper.selectApplyInfoList(applyInfo);
    }

    /**
     * 新增代取员认证申请
     * 
     * @param applyInfo 代取员认证申请
     * @return 结果
     */
    @Override
    public int insertApplyInfo(ApplyInfo applyInfo)
    {
        return applyInfoMapper.insertApplyInfo(applyInfo);
    }

    /**
     * 修改代取员认证申请
     * 
     * @param applyInfo 代取员认证申请
     * @return 结果
     */
    @Override
    public int updateApplyInfo(ApplyInfo applyInfo)
    {
        return applyInfoMapper.updateApplyInfo(applyInfo);
    }

    /**
     * 批量删除代取员认证申请
     * 
     * @param applyIds 需要删除的代取员认证申请主键
     * @return 结果
     */
    @Override
    public int deleteApplyInfoByApplyIds(Long[] applyIds)
    {
        return applyInfoMapper.deleteApplyInfoByApplyIds(applyIds);
    }

    /**
     * 删除代取员认证申请信息
     * 
     * @param applyId 代取员认证申请主键
     * @return 结果
     */
    @Override
    public int deleteApplyInfoByApplyId(Long applyId)
    {
        return applyInfoMapper.deleteApplyInfoByApplyId(applyId);
    }
}
